package org.example.intelligent_education.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.intelligent_education.model.TeacherInfo;

@Mapper
public interface TeacherMapper {
    @Select("select * from teacher where tname = #{tname}")
    TeacherInfo getTeacherInfo(String tname);

    @Insert("insert into course_source (cid,url,rname) values (#{cid},#{url},#{rname})")
    Integer insertCourseSource(int cid, String url, String rname);

}
